﻿@{
    ViewBag.Title = "Header";
}

<div id="header">
    <div class="container">
        <div class="row">
            <div class="span2">
                <a href="/home"><img src ="/Content/images/logo.svg" /></a>
            </div>
            <div class="span8">
                <div id="menu-header">
                    <a href="/home" class="link-header" onclick="getPage(0)">
                        <div class="title-header" >Accueil</div>
                        <div class="sous-title-header">Page d'accueil</div>
                    </a>
                    <a href="/home/Faq" class="link-header" onclick="getPage(1)">
                        <div class="title-header">Nos services</div>
                        <div class="sous-title-header">Notre offre</div>
                    </a>
                    <a href="/home/Tarif" class="link-header" onclick="getPage(2)">
                        <div class="title-header">Tarifs</div>
                        <div class="sous-title-header">Découvrez nos tarifs</div>
                    </a>
                    <a href="/home/Tarif" class="link-header" onclick="getPage(3)">
                        <div class="title-header">Documents</div>
                        <div class="sous-title-header">Doc'Community</div>
                    </a>
                    <a href="/home/Faq" class="link-header" onclick="getPage(4)">
                        <div class="title-header">Support</div>
                        <div class="sous-title-header">FAQ</div>
                    </a>
                    <a href="/home/Contact" class="link-header" onclick="getPage(5)">
                        <div class="title-header">Contact</div>
                        <div class="sous-title-header">Contactez-nous</div>
                    </a>
                </div>
            </div>
            <div class="span2">
                @if (User.Identity.IsAuthenticated){
                    //<div id="name-account">Bonjour <a href="#"><i class="icon-user"></i> @User.Identity.Name</a> !</div>
                    
                    <div class="btn-group">
                        <a id="name-account" data-toggle="dropdown"><i class="icon-user"></i> @User.Identity.Name <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Mon compte</a></li>
                            <li><a href="#">Mes documents</a></li>
                            <li><a href="/Account/manage/">Changer mon mot de passe</a></li>
                            <li class="divider"></li>
                            <li>
                                <text>
                                    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
                                        @Html.AntiForgeryToken()
                                        <a href="javascript:document.getElementById('logoutForm').submit()">Se déconnecter</a>
                                    }
                                </text>
                            </li>
                        </ul>
                    </div>
                }else{
                    <a href="/Account/register/">
                        <div id="button-register">
                            <div id="register">Register</div>
                        </div>
                    </a>
                    <a href="/Account/login/">
                        <div id="button-login">
                            <div id="login">Login</div>
                        </div>
                    </a>
                }
            </div>
        </div>
    </div>
</div>
